package com.study.springsecurity.security.checks;

import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Component;

/**
 * admin角色权限检查
 */
@Slf4j
@Component("adminRoleCheck")
public class AdminRoleCheck {
    public boolean check(Authentication authentication) {
        log.info("进入了自定义的匹配器" + authentication);
        return true;
    }

    public boolean check(Authentication authentication, String name) {
        log.info("进入了自定义的匹配器" + authentication);
        return true;
    }
}
